timezone_identifiers_list
DateTimeZone::listIdentifiers的别名 - 返回一个包含了所有时区标示符的索引数组
timezone_identifiers_list()
返回包含所有时区标识符的索引数组。
输出亚洲的所有时区:
<?php print_r(timezone_identifiers_list(16)); ?>
亲自试一试
timezone_identifiers_list(what,country);
参数 | 描述 |
---|---|
what |
可选。规定 DateTimeZone 类常量
|
country | 可选。规定两个字母的 ISO 3166-1 兼容的国家代码。 |